const LocksRouter = {
  path: '/locks',
  component: () => import('@/views/Locks/index.vue'),
  redirect: 'locks/index',
  name: 'Locks',
  children: [
    {
      path: 'index',
      component: () => import('@/views/Locks/modules/index/index.vue'),
      name: 'Locksindex',
      meta: {
        name: 'lockhome'
      }
    },
    // 智能锁控下钻
    {
      path: 'LockControlPage',
      component: () => import('@/views/Locks/modules/LockControl/LockControlPage.vue'),
      name: 'LockControlPage',
      meta: {
        name: 'secondLevel'
      }
    },
    // 门禁控制下钻
    {
      path: 'EntranceGuardPage',
      component: () => import('@/views/Locks/modules/LockEntranceGuard/EntranceGuardPage.vue'),
      name: 'EntranceGuardPage',
      meta: {
        name: 'secondLevel'
      },
      // children: [
      //   {
      //     path: 'newControlPop',
      //     component: () => import('@/views/Locks/modules/LockEntranceGuard/newControlPop.vue'),
      //     name: 'newControlPop',
      //   }
      // ]
    },
    // 门禁弹窗
    {
      path: 'EntranceGuardPage/newControlPop',
      component: () => import('@/views/Locks/modules/LockEntranceGuard/newControlPop.vue'),
      name: 'newControlPop',
      // ]
    },
    // 五防钥匙箱下钻
    {
      path: 'KeyBoxPage',
      component: () => import('@/views/Locks/modules/KeyBox/KeyBoxPage.vue'),
      name: 'KeyBoxPage',
      meta: {
        name: 'secondLevel'
      }
    },
    // 五防钥匙箱弹窗
    {
      path: 'KeyBoxPage/infoDetailsPage',
      component: () => import('@/views/Locks/modules/KeyBox/infoDetailsPage.vue'),
      name: 'KeyBoxPage',
    },
    // 一匙通下钻
    {
      path: 'KeyLinksPage',
      component: () => import('@/views/Locks/modules/KeyLinks/KeyLinksPage.vue'),
      name: 'KeyLinksPage',
      meta: {
        name: 'secondLevel'
      }
    }
  ]
};

export default LocksRouter;